﻿namespace CommLib
{
    public class MessageConversation : BluetoothMessage
    {
        public MessageConversation(Conversation cv)
            : base(BtMessageType.Conversation, new string[] { cv.getPhoneNumber(),
				cv.getContactName(), cv.getThreadId().ToString(),
				cv.getMessageCount().ToString(), cv.getSnippet() })
        {
        }

        public MessageConversation(byte[] data, int length)
            : base(BtMessageType.Conversation, data, length)
        {
        }

        public Conversation getConversation()
        {
            return new Conversation(mData, 0);
        }
    }
}
